package com.sc.domain.patrol;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 巡检任务
 * @author: Zuiliu
 **/
@Data
@TableName("zuiliu_patrol_tasks")
public class PatrolTask {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("task_name")
    private String taskName;//任务名称
    @TableField("patrol_person")
    private String patrolPerson;//巡检人员
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("start_time")
    private LocalDateTime startTime;//开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("end_time")
    private LocalDateTime endTime;
    @TableField("remind_time")
    private String remindTime;//提醒时间
    @TableField("must_photo")
    private boolean mustPhoto;//巡更状态-必须拍照
    @TableField("allow_trips")
    private boolean allowTrips;//巡更状态-允许跳检
    @TableField("connection_plan")
    private String connectionPlan;//关联计划
    @TableField("task_status")
    private String taskStatus;//状态
}
